import request from "@/utils/request";

//获取所有秒杀信息
export function getAllSeckillInfo(data){
    return request({
        url:'/check/getAllSeckillInfo',
        method: 'GET',
        params: data,
    })
}

//更新秒杀
export function updateSeckill(data){
    return request({
        url:'/check/updateSeckill',
        method: 'POST',
        data: data,
    })
}



//获取所有活动信息
export function getAllActivityInfo(data){
    return request({
        url:'/check/getAllActivityInfo',
        method: 'GET',
        params: data,
    })
}

//更新活动
export function updateActivity(data){
    return request({
        url:'/check/updateActivity',
        method: 'POST',
        data: data,
    })
}



//获取所有栏目信息
export function getAllColumnInfo(data){
    return request({
        url:'/check/getAllColumnInfo',
        method: 'GET',
        params: data,
    })
}

//更新栏目
export function updateColumn(data){
    return request({
        url:'/check/updateColumn',
        method: 'POST',
        data: data,
    })
}

//获取所有广告信息
export function getAllAdvertInfo(data){
    return request({
        url:'/check/getAllAdvertInfo',
        method: 'GET',
        params: data,
    })
}

//更新广告
export function updateAdvert(data){
    return request({
        url:'/check/updateAdvert',
        method: 'POST',
        data: data,
    })
}